package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.CouponStaffLog;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface CouponStaffLogService extends IService<CouponStaffLog> {


    long getByCouponStaffId(Long couponStaffId);

    List<CouponStaffLog> getByCode(String code, Integer status);

    // 撤回订单付款关联的代金券记录
    boolean revocationPayed(String code, Long couponStaffId);

}
